<div class="modal fade" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true" id="edit">
    <div class="modal-dialog " role="document">
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
                <h4 class="modal-title" id="myModalLabel">功能管理 - 修改</h4>
            </div>
            <div class="modal-body">  	
				
	            <form name="editForm">
	            	<div class="form-group">
                        <label class="col-xs-12 col-sm-3 control-label text-right">上级机构：</label>
                        <div class="col-xs-12 col-sm-9">
                            <input type="text"
                            	   name="functionName"
                            	   class="form-control readonly" 
                            	   readonly 
                            	   ng-model="functionName"
                            	   >
                        </div>       
                    </div>
                    <div class="form-group">
                        <label class="col-xs-12 col-sm-3 control-label text-right">功能名称：</label>
                        <div class="col-xs-12 col-sm-9">
                            <input type="text"
                            	   name="functionName"
                            	   ng-minlength="2" 
                            	   autocomplete="off" 
                            	   class="form-control" 
                            	   ng-model="edit_functionName"
                            	   required 
                            	   />
                            <label class="red required">*</label>
                             <div class="error" ng-show="editForm.functionName.$dirty && editForm.functionName.$invalid">
							    <small class="error" ng-show="editForm.functionName.$error.required">请输入功能名称</small>
							    <small class="error" ng-show="editForm.functionName.$error.minlength ">功能名称长度在1-32之间</small>
 							 </div>
                        </div>       
                    </div>
                    <div class="form-group">
                        <label class="col-xs-12 col-sm-3 control-label text-right">功能编码：</label>
                        <div class="col-xs-12 col-sm-9">
                            <input type="text"
                            	   name="functionCode"
                            	   ng-minlength="2" 
                            	   autocomplete="off" 
                            	   class="form-control" 
                            	   required 
                            	   ng-model="edit_functionCode"
                            	   />
                            <label class="red required">*</label>
                             <div class="error" ng-show="editForm.functionCode.$dirty && editForm.functionCode.$invalid">
							    <small class="error" ng-show="editForm.functionCode.$error.required">请输入功能编码</small>
							    <small class="error" ng-show="editForm.functionCode.$error.minlength ">功能编码长度在1-32之间</small>
 							 </div>
                        </div>       
                    </div>
                    <div class="form-group">
                        <label class="col-xs-12 col-sm-3 control-label text-right">英文名：</label>
                        <div class="col-xs-12 col-sm-9">
                            <input type="text"
                            	   name="functionEName"
                            	   ng-minlength="2" 
                            	   autocomplete="off" 
                            	   class="form-control" 
                            	   ng-model="edit_functionEName"
                            	   required 
                            	   />
                            <label class="red required">*</label>
                             <div class="error" ng-show="editForm.functionEName.$dirty && editForm.functionEName.$invalid">
							    <small class="error" ng-show="editForm.functionEName.$error.required">请输入英文名</small>
							    <small class="error" ng-show="editForm.functionEName.$error.minlength ">英文名长度在1-32之间</small>
 							 </div>
                        </div>       
                    </div>
                    <div class="form-group">
                        <label class="col-xs-12 col-sm-3 control-label text-right">页面地址：</label>
                        <div class="col-xs-12 col-sm-9">
                            <input type="url"
                            	   name="pageUrl"
                            	   autocomplete="off" 
                            	   class="form-control" 
                            	   required 
                            	   ng-model="edit_pageUrl"
                            	   />
                            <label class="red required">*</label>
                             <div class="error" ng-show="editForm.pageUrl.$dirty && editForm.pageUrl.$invalid">
							    <small class="error" ng-show="editForm.pageUrl.$error.required">请输入页面地址</small>
							    <small class="error" ng-show="editForm.pageUrl.$error.url">请输入正确的URL</small>
 							 </div>
                        </div>       
                    </div>
                    <div class="form-group">
                        <label class="col-xs-12 col-sm-3 control-label text-right" >功能类型：</label>
                        <div class="col-xs-12 col-sm-9">
                            <select name="functionType" 
                            		required 
                            		ng-options="obj.id as obj.name for obj in editFunctionTypeSelect"
                            		ng-model="edit_functionType"
                            		>
							</select>
							<div class="error" ng-show="editForm.functionType.$dirty && editForm.functionType.$invalid">
							    <small class="error" ng-show="editForm.functionType.$error.required">请选择功能类型</small>
 							 </div>
                        </div>       
                    </div>
                    <div class="form-group">
                        <label class="col-xs-12 col-sm-3 control-label text-right" >是否启用：</label>
                        <div class="col-xs-12 col-sm-9">
                            <select name="enable"  
                            		required
                            		ng-options="obj.id as obj.name for obj in editEnableSelect"
                            		ng-model="edit_enable" 
                            		>
							</select>
							<div class="error" ng-show="editForm.enable.$dirty && editForm.enable.$invalid">
							    <small class="error" ng-show="editForm.enable.$error.required">请选择是否启用</small>
 							 </div>
                        </div>       
                    </div>
                    <div class="form-group">
                        <label class="col-xs-12 col-sm-3 control-label text-right" >描述：</label>
                        <div class="col-xs-12 col-sm-9">
                           <textarea rows="5" 
                           			 type="text" 
                           			 name="description" 
                           			 class="form-control" 
                           			 ng-model="edit_description"
                           			 />
                   			</textarea>
                        </div>       
                    </div>
                    <div class="col-sm-12">
                        <div class="modal-footer">
	                        <button type="button" 
	                        		class="btn btn-default" 
	                        		data-dismiss="modal"
	                        		>取消
                    		</button>
	                        <button type="button" 
	                        		class="btn btn-primary" 
	                        		data-dismiss="modal"
	                        		ng-disabled="editForm.$invalid"
	                        		ng-click="submitEdit()"
	                        		>确定
                    		</button>
            			</div>
            		</div>	
				</form>
			</div>	
        </div>
    </div>
</div>